<h3 class="page-title">添加权限
    <small>Add Permission</small>
</h3>

<ul class="breadcrumb">
    <li>
        <i class="icon-home"></i>
        <a href="javascript:;" ui-sref="index.home">首页</a>
        <i class="icon-angle-right"></i>
    </li>
    <li>
        <a href="javascript:;">系统管理</a>
        <i class="icon-angle-right"></i>
    </li>
    <li>
        <a href="javascript:;">权限管理</a>
        <i class="icon-angle-right"></i>
    </li>
    <li>
        <a href="javascript:;" ui-sref="index.add-permission">添加权限</a>
    </li>
    <li class="pull-right no-text-shadow">
        {{utc}} UTC
    </li>
</ul>


<div class="portlet box red">
    <div class="portlet-title">
        <div class="caption"><i class="icon-reorder"></i>添加权限</div>
        <div class="tools">
            <a href="javascript:;" class="collapse"></a>
        </div>
    </div>

    <div class="portlet-body form">
        <!-- BEGIN FORM-->
        <form action="#" class="form-horizontal">
            <h3 class="form-section">基本信息</h3>
            <div class="row-fluid">
                <div class="span6 ">
                    <div class="control-group">
                        <label class="control-label">菜单名称</label>
                        <div class="controls">
                            <input type="text" class="m-wrap span12" placeholder="菜单名称" ng-model="permission.name">
                        </div>
                    </div>
                </div>

                <!--/span-->
                <div class="span6 ">
                    <div class="control-group">
                        <label class="control-label">权限字符串</label>
                        <div class="controls">
                            <input type="text" class="m-wrap span12" placeholder="权限字符串" ng-model="permission.permission">
                        </div>
                    </div>
                </div>
                <!--/span-->

            </div>

            <!--/row-->
            <div class="row-fluid">
                <div class="span6 ">
                    <div class="control-group">
                        <label class="control-label">权限描述</label>
                        <div class="controls">
                            <input type="text" class="m-wrap span12" placeholder="权限描述" ng-model="permission.description">
                        </div>
                    </div>
                </div>

                <!--/span-->
                <div class="span6 ">
                    <div class="control-group">
                        <label class="control-label">权限地址</label>
                        <div class="controls">
                            <input type="text" class="m-wrap span12" placeholder="权限地址" ng-model="permission.url">
                        </div>
                    </div>
                </div>

                <!--/span-->

            </div>

            <!--/row-->
            <div class="row-fluid">
                <div class="span6">
                    <div class="control-group">
                        <label class="control-label">图标</label>
                        <div class="controls">
                            <input type="text" class="m-wrap span12" placeholder="图标" ng-model="permission.logo">
                        </div>
                    </div>
                </div>

                <!--/span-->
                <div class="span6">
                    <div class="control-group">
                        <label class="control-label">type</label>
                        <div class="controls">
                            <select class="m-wrap span12">
                                <option value="">-- 请选择类别 --</option>
                                <option value="">0</option>
                                <option value="">1</option>
                            </select>
                        </div>
                    </div>
                </div>
                <!--/span-->
            </div>

            <h3 class="form-section">节点信息</h3>
            <!--<div class="row-fluid">-->
                <!--<div class="span6 ">-->
                    <!--<div class="control-group">-->
                        <!--<label class="control-label">父节点</label>-->
                        <!--<div class="controls">-->
                            <!--<select class="m-wrap span6" ng-model="parentId">-->
                                <!--<option value="-1">新建父节点</option>-->
                                <!--<option ng-repeat="p in parent" value="{{p.permissionId}}">{{p.name}}</option>-->
                            <!--</select>-->
                            <!--&lt;!&ndash;ng-disabled="disabled"&ndash;&gt;-->
                            <!--<select class="m-wrap span6" ng-model="childrenId">-->
                                <!--<option value="-1">新建子节点</option>-->
                                <!--<option ng-repeat="c in children" value="{{c.permissionId}}">{{c.name}}</option>-->
                            <!--</select>-->
                        <!--</div>-->
                    <!--</div>-->
                <!--</div>-->

                <!--&lt;!&ndash;/span&ndash;&gt;-->
                <!--<div class="span6">-->
                    <!--<div class="control-group">-->
                        <!--<label class="control-label">权限排序</label>-->
                        <!--<div class="controls">-->
                            <!--<select class="m-wrap span12" ng-model="permission.permissionSort">-->
                                <!--<option ng-repeat="i in index" value="{{i.num}}">{{i.num}}</option>-->
                            <!--</select>-->
                        <!--</div>-->
                    <!--</div>-->
                <!--</div>-->
                <!--&lt;!&ndash;/span&ndash;&gt;-->
            <!--</div>-->
            <div class="row-fluid">
                <div  class="span6">
                    <div class="control-group">
                        <label class="control-label">节点信息</label>
                        <ul id="parentId">

                        </ul>
                    </div>
                </div>
            </div>

            <div class="form-actions">
                <button type="button" class="btn blue" ng-click="add()"><i class="icon-ok"></i> 保存</button>
                <button type="button" class="btn">重置</button>
            </div>

        </form>

        <!-- END FORM-->

    </div>

</div>


